<template>
    <div>
       <router-link 
        v-for="item in user_list" :key="item.id"
        :to="'/user/'+item.id"
       >
        {{ item.name }}
        </router-link>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                user_list: [
                    {
                        id: 0,
                        name: '张三'
                    },
                    {
                        id: 1,
                        name: '李四'
                    },
                    {
                        id: 2,
                        name: '王二麻子'
                    }
                ]
            }
        },
    }
</script>